home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
K-L
/
LImacSTACK11⁄89.cpt
/
Using Repeat
/
card_7784.txt
< prev
next >
Wrap
Text File
|
1989-11-02
|
919b
|
43 lines
-- card: 7784 from stack: in
-- bmap block id: 9661
-- flags: 0000
-- background id: 2687
-- name:
----- HyperTalk script -----
on opencard
repeat with i = 8 to 9
hide bg btn i
end repeat
end openCard
-- part 4 (field)
-- low flags: 01
-- high flags: 2001
-- rect: left=79 top=58 right=292 bottom=427
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part contents for background part 8
----- text -----
CONTROL STRUCTURES - Repeat
-- part contents for card part 4
----- text -----
HyperCard uses two basic types of control structures:
1) Making simple decisions
2) Repeating actions
In this stack we will give examples of the second type - Repeating actions with a "repeat" structure.
Basically it works like this...
repeat (with parameters)
what to do
end repeat